ARG_TERMINATOR
};
-#if ! HAVE_LIBEXPAT
-static void
-gtc_rd_init(const char* fname)
-{
- fatal(MYNAME ": this format does not support reading.\n");
-}
-
-static void
-gtc_read(void)
-{
-}
-
-static void
-gtc_rd_deinit(void)
-{
-
-}
-#else
-
/* Tracks */
static xg_callback gtc_trk_s;
static xg_callback gtc_trk_ident;
{
xml_deinit();
}
-#endif
static void
gtc_wr_init(const char* fname)
#include "defs.h"
#include "xmlgeneric.h"
-#if HAVE_LIBEXPAT
-#include <expat.h>
-#endif
-
#define MYNAME "IGNRando"
static gbfile* fout;
ARG_TERMINATOR
};
-#if ! HAVE_LIBEXPAT
-
-static void
-ignr_rd_init(const char* fname)
-{
- fatal(MYNAME ": This build excluded \"" MYNAME "\" input support because expat was not installed.\n");
-}
-
-static void
-ignr_read(void)
-{
-}
-
-static void
-ignr_rd_deinit(void)
-{
-}
-
-#else
-
static xg_callback ignr_start;
static xg_callback ignr_nb_etapes, ignr_descr;
xml_read();
}
-#endif
-
/* write support */
/* callbacks registered in ignr_vecs */
kml_color_sequencer.seq = kml_color_sequencer.seq + kml_color_sequencer.step;
}
-#if ! HAVE_LIBEXPAT
-static void
-kml_rd_init(const char* fname)
-{
- fatal(MYNAME ": This build excluded KML support because expat was not installed.\n");
-}
-
-static void
-kml_read(void)
-{
-}
-#else
-
static xg_callback wpt_s, wpt_e;
static xg_callback wpt_name, wpt_desc, wpt_coord, wpt_icon, trk_coord, wpt_time;
{
xml_read();
}
-#endif
static void
kml_rd_deinit(void)
static int node_id;
static int skip_rte;
-#if HAVE_LIBEXPAT
static route_head* rte;
static waypoint* wpt;
-static int wpt_loaded, rte_loaded;
static xg_callback osm_node, osm_node_tag, osm_node_end;
static xg_callback osm_way, osm_way_nd, osm_way_tag, osm_way_end;
{ osm_way_end, cb_end, "/osm/way" },
{ NULL, (xg_cb_type)0, NULL }
};
-#endif // HAVE_LIBEXPAT
static const char* osm_features[] = {
"- dummy -", /* 0 */
{ -1, NULL, NULL }
};
-#if ! HAVE_LIBEXPAT
-
-void
-osm_rd_init(const char* fname)
-{
- fatal(MYNAME ": This build excluded \" MYNAME \" support because expat was not installed.\n");
-}
-
-void
-osm_read(void)
-{
-}
-
-#else
-
/*******************************************************************************/
/* READER */
{
wpt = NULL;
rte = NULL;
- wpt_loaded = 0;
- rte_loaded = 0;
waypoints.clear();
if (keys.isEmpty()) {
xml_read();
}
-#endif
-
static void
osm_rd_deinit(void)
{
#define MYNAME "wfff_xml"
#define MY_CBUF 4096
-#if ! HAVE_LIBEXPAT
-void
-wfff_xml_rd_init(const char *fname)
-{
- fatal(MYNAME ": This build excluded WFFF_XML support because expat was not installed.\n");
-}
-void
-wfff_xml_read(void)
-{
-}
-void
-wfff_xml_rd_deinit(void)
-{
-}
-
-#else
-
static xg_callback wfff_s, wfff_e;
static xg_callback wfff_wep, wfff_mac, wfff_type;
static xg_callback wfff_ssid, wfff_chan;
}
-#endif
-
ff_vecs_t wfff_xml_vecs = {
ff_type_file,
{ff_cap_read, ff_cap_none, ff_cap_none},